

import LayoutDefault from '../layout/default/index.vue'
import LayoutPage from '../layout/page/index.vue'
import  { t } from '@/i18n/index'
const routes=[
  {
    path: '/', 
    name: '/',
    component: LayoutDefault,
    meta: { title: t("menu.home") },
    children:[
      {
        path: '/home',
        name: 'home',
        meta: { title: t("menu.home") },
        component: () => import('@/views/home/index.vue')
      },
    ]
  },
  {
    path: '/visitor/detail', 
    name: '/visitor',
    component: LayoutDefault,
    meta: { title: t("menu.visitorDetail.name") },
    children:[
      {
        path: '/visitor/detail',
        name: 'visitorDetail',
        meta: { title:t("menu.visitorDetail.name") },
        component: () => import('@/views/visitor/index.vue')
      },
    ]
  },
  {
    path: '/event/detail', 
    name: '/event',
    component: LayoutDefault,
    meta: { title: t("menu.event.name") },
    children:[
      {
        path: '/event/detail',
        name: 'eventDetail',
        meta: { title:t("menu.event.name") },
        component: () => import('@/views/event/index.vue')
      },
    ]
  },
  {
    path: '/referer/detail', 
    name: '/referer',
    component: LayoutDefault,
    meta: { title: t("menu.referer.name") },
    children:[
      {
        path: '/referer/detail',
        name: 'refererDetail',
        meta: { title:t("menu.referer.name") },
        component: () => import('@/views/referer/index.vue')
      },
    ]
  },
  {
    path: '/flow/detail', 
    name: '/flow',
    component: LayoutDefault,
    meta: { title: t("menu.flow.name") },
    children:[
      {
        path: '/flow/detail',
        name: 'flowDetail',
        meta: { title:t("menu.flow.tendency") },
        component: () => import('@/views/AboutView.vue')
      },
      {
        path: '/flow/fingerprint',
        name: 'fingerprint',
        meta: { title:t("menu.flow.fingerprint") },
        component: () => import('@/views/AboutView.vue')
      },
      {
        path: '/flow/timeZone',
        name: 'timeZone',
        meta: { title:t("menu.flow.timeZone") },
        component: () => import('@/views/AboutView.vue')
      },
    ]
  },
  
  
  
  {
    path: '/userAgent/deviceClass', 
    name: '/userAgent',
    component: LayoutDefault,
    meta: { title: t("menu.userAgent.name") },
    children:[
      {
        path: '/userAgent/deviceClass',
        name: 'deviceClass',
        meta: { title:t("menu.userAgent.deviceClass") },
        component: () => import('@/views/AboutView.vue')
      },
      {
        path: '/userAgent/deviceBrand',
        name: 'deviceBrand',
        meta: { title:t("menu.userAgent.deviceBrand") },
        component: () => import('@/views/AboutView.vue')
      },
      {
        path: '/userAgent/systemName',
        name: 'systemName',
        meta: { title:t("menu.userAgent.systemName") },
        component: () => import('@/views/AboutView.vue')
      },
      {
        path: '/userAgent/browserType',
        name: 'browserType',
        meta: { title:t("menu.userAgent.browserType") },
        component: () => import('@/views/AboutView.vue')
      },
      {
        path: '/userAgent/browserName',
        name: 'browserName',
        meta: { title:t("menu.userAgent.browserName") },
        component: () => import('@/views/AboutView.vue')
      },
    ]
  },
  {
    path: '/language/things', 
    name: '/language',
    component: LayoutDefault,
    meta: { title: t("menu.language.name") },
    children:[
      {
        path: '/language/things',
        name: 'things',
        meta: { title:t("menu.language.things") },
        component: () => import('@/views/AboutView.vue')
      },
      {
        path: '/language/secondary',
        name: 'secondary',
        meta: { title:t("menu.language.secondary") },
        component: () => import('@/views/AboutView.vue')
      },
    ]
  },
  
  {
    path: '/ipaddress/placeOfOrigin', 
    name: '/ipaddress',
    component: LayoutDefault,
    meta: { title: t("menu.ipaddress.name") },
    children:[
      {
        path: '/ipaddress/placeOfOrigin',
        name: 'placeOfOrigin',
        meta: { title:t("menu.ipaddress.placeOfOrigin") },
        component: () => import('@/views/AboutView.vue')
      },
      {
        path: '/ipaddress/ans',
        name: 'ans',
        meta: { title:t("menu.ipaddress.ans") },
        component: () => import('@/views/AboutView.vue')
      },
      {
        path: '/ipaddress/timeZone',
        name: 'timeZone',
        meta: { title:t("menu.ipaddress.timeZone") },
        component: () => import('@/views/AboutView.vue')
      },
      {
        path: '/ipaddress/windControl',
        name: 'windControl',
        meta: { title:t("menu.ipaddress.windControl") },
        component: () => import('@/views/AboutView.vue')
      },
    ]
  },
  {
    path: '/page1',
    name: 'page1',
    component: LayoutDefault,
    meta: { title: t("menu.about") },
    children:[
      {
        path: '/page/about1',
        name: 'about1',
        meta: { title: t("menu.about") },
        component: () => import('../views/AboutView.vue')
      }
    ]
  },
  {
    path: '/page',
    name: 'page',
    component: LayoutPage,
    meta: { title: t("menu.about") },
    children:[
      {
        path: '/page/about',
        name: 'about',
        meta: { title: t("menu.about") },
        component: () => import('../views/AboutView.vue')
      }
    ]
  }
];
export default routes